#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <iostream>
using namespace std;

int main()
{
    int a[700];
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    int n;
    scanf("%d",&n);
    for (int i=0;i<2*n;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a,a+2*n);
    for (int i=0;i<2*n;i++)
    {
        printf("%d ",a[i]);
    }
}
